<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
	<head>
		<title>Authorization - A ColdFusion on Wheels (1.0) sample application</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<style>
		*
		{
			padding: 0;
			margin: 0;
		}

		body
		{
			text-align: center;
			font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
			line-height: 1.5em;
			font-size: 14px;
			color: #333;
			background: #ddd;
		}

		#wrapper
		{
			margin: auto;
			text-align: left;
			width: 698px;
			background: #fff;
			border-left: 3px solid #999;
			border-right: 3px solid #999;
			border-bottom: 3px solid #999;
		}

		#content
		{
			background: #fff;
			padding: 15px;
		}

		#footer p
		{
			font-family: Arial;
			font-size: 10px;
		}

		h1
		{
			font-size: 24px;
			font-weight: bold;
			color: #902c2c;
			margin: 10px 0 5px 0;
		}

		h2
		{
			font-size: 16px;
			font-weight: bold;
			color: #902c2c;
		}

		p
		{
			margin-bottom: 15px;
		}

		p.small
		{
			font-size: 11px;
		}

		#content a
		{
			color: #922c2c;
			text-decoration: underline;
			padding: 1px;
		}

		#content a:hover
		{
			color: #fff;
			background: #922c2c;
			text-decoration: none;
		}

		#content ul
		{
			margin: 10px 0 15px 25px;
		}

		#content ul li
		{
			padding-bottom: 0;
		}

		img
		{
			border: none;
		}

		pre
		{
			border: 1px solid #a6a2a2;
		  overflow-x: auto;
		  width: 646px;
		  padding: 15px;
		  margin-bottom: 15px;
		  background: #ffffe0;
		}

		code
		{
			color: #000;
			font-family: Courier;
		}

		tt
		{
			font-size: 12px;
			color: #666;
		}

		form label
		{
			margin-top: 5px;
			display: block;
			font-weight: bold;
		}

		input[type=submit]
		{
			margin-top: 15px;
			display: block;
		}

		.error-messages
		{
			color: red;
		}

		.field-with-errors
		{
			color: red;
		}

		</style>
	</head>
	<body>
		<div id="wrapper">
			<div id="content">
				<cfoutput>
					
					<!--- Links to the public and secure areas --->
					#linkTo(text="Public site", controller="pages", action="publicContent")# |
					#linkTo(text="Secure site", controller="pages", action="secureContent")# |

					<!--- Check if the user is logged in --->
					<cfif StructKeyExists(session, "currentUser")>
						#linkTo(text="Logout", route="logout")#
					<cfelse>
						#linkTo(text="Login", route="login")#
					</cfif>

					<!--- Show error / info messages (shown on failed login and when trying to access protected areas when not logged in etc) --->
					<cfif flashKeyExists("info")>
						<p style="border: 2px solid gray; padding: 5px; font-weight: bold; margin-top: 15px; background: ##ededed; color: red;">#flash("info")#</p>
					</cfif>
					
					<!--- Output the content from the view page --->
					#contentForLayout()#

				</cfoutput>
			</div>
		</div>
		<div id="footer"></div>
	</body>
</html>